package logger;

import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;

public class OurFormatter extends SimpleFormatter {

	/**
	 * format overrides format method of the SimpleFormatter
	 * it formats the string as requested
	 * @param record the input log message received from running program
	 * @return the string for the log file
	 */
	public String format(LogRecord record) {
		String lineSeparator = System.getProperty("line.separator");

		return record.getMessage() + lineSeparator;
	}

}
